package com.zr.daoimpl;

import java.util.ArrayList;
import java.util.List;

import org.hibernate.Query;
import org.springframework.stereotype.Repository;

import com.zr.dao.ShowStationNameDao;
import com.zr.model.Cdisstation;
import com.zr.model.Cuser;

@Repository("showStationNameDao")
public class ShowStationNameDaoImpl<T> extends BaseDaoImpl<T> implements ShowStationNameDao<T>{

	@Override
	public List<Cdisstation> getAllStationNameByDistypeid(int distypeid) {
		List<Cdisstation> rs = new ArrayList<Cdisstation>();
		String hql = "from Cdisstation where distypeid not in (:distypeid)";
		Query que = this.getCurrentSession().createQuery(hql);
		que.setInteger("distypeid", distypeid);
		rs=que.list();
		return rs;
	}

}
